/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 评测记录Entity
 * @author jyangye
 * @version 2018-01-04
 */
public class ViEmpTest extends DataEntity<ViEmpTest> {
	
	private static final long serialVersionUID = 1L;
	private Office comp;
	private String employeeId;		// 员工编号
	private String name;		// 姓名
	private String code;		// 身份证号
	private String telephone;		// 联系方式
	private int score;		// 综合评测
	private String mainNature;		// 性格评测-主性格
	private String subNature;		// 性格评测-次性格
	private String isActive;		// 是否生效
	
	public ViEmpTest() {
		super();
	}

	public ViEmpTest(String id){
		super(id);
	}

    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }

    @Length(min=0, max=32, message="员工编号长度必须介于 0 和 32 之间")
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}
	
	@Length(min=1, max=64, message="姓名长度必须介于 1 和 64 之间")
	@ExcelField(title="姓名", align=2, sort=30)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="身份证号长度必须介于 1 和 64 之间")
	@ExcelField(title="身份证号", align=2, sort=40)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=1, max=16, message="联系方式长度必须介于 1 和 16 之间")
	@ExcelField(title="联系方式", align=2, sort=50)
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@ExcelField(title="综合评测", align=2, sort=60)
	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}
	
	@Length(min=1, max=32, message="性格评测-主性格长度必须介于 1 和 32 之间")
	@ExcelField(title="性格评测-主性格", align=2, sort=70)
	public String getMainNature() {
		return mainNature;
	}

	public void setMainNature(String mainNature) {
		this.mainNature = mainNature;
	}
	
	@Length(min=0, max=32, message="性格评测-次性格长度必须介于 0 和 32 之间")
	@ExcelField(title="性格评测-次性格", align=2, sort=80)
	public String getSubNature() {
		return subNature;
	}

	public void setSubNature(String subNature) {
		this.subNature = subNature;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}
	
}